package ejb.reservationManagement;

import java.util.List;

import ejb.dto.PackageDTO;

public interface PackageMgr {

	/**
	 * Return PackageDTO of Package identified by <code>id</code>
	 * @param id
	 * @return PackageDTO
	 */
	PackageDTO getPackageDTO(int id);

	/**
	 * Return all PackageDTO
	 * @return all PackageDTO
	 */
	List<PackageDTO> getAllPackagesDTO();

	/**
	 * Update Package identified by <code>updatedPackage</code> in database
	 * @param updatedPackage
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean updatePackage(PackageDTO updatedPackage);

	/**
	 * Insert Package identified by <code>newPackage</code> in database
	 * @param newPackage
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean insertPackage(PackageDTO newPackage);

	/**
	 * Delete Package identified by <code>id</code> from database
	 * @param id
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean deletePackage(int id);

}
